@for $i from 1 through 12 {
    .gift >div:nth-last-of-type(#{$i}) {
        animation: rotate 1s 1s linear forwards;
    }
}